package com.szgr.baoyin.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

import com.szgr.baoyin.R;

/**
 * 09/28 融资租赁
 */
public class NewFinanceActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_new_finance);
        super.onCreate(savedInstanceState);
    }

    @Override
    public void initActionBar() {
        actionBarTitle.setText("融资租赁");
    }

    @Override
    public void initView() {
        findViewById(R.id.finance_first).setOnClickListener(this);
        findViewById(R.id.finance_second).setOnClickListener(this);
        findViewById(R.id.finance_third).setOnClickListener(this);
        findViewById(R.id.finance_fourth).setOnClickListener(this);
        findViewById(R.id.finance_fifth).setOnClickListener(this);
        findViewById(R.id.finance_sixth).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.action_bar_left:
                finish();
                break;
            case R.id.finance_first://融资流程
                Intent intentFirst = new Intent(this, FinanceProcessActivity.class);
                intentFirst.putExtra("from","first");
                startActivity(intentFirst);
                break;
            case R.id.finance_second://融资条款
                Intent intentSecond = new Intent(this, FinanceProcessActivity.class);
                intentSecond.putExtra("from","second");
                startActivity(intentSecond);
                break;
            case R.id.finance_third://资质提交
                startActivity(new Intent(this,AptitudeSubmitActivity.class));
                break;
            case R.id.finance_fourth://预约访厂
                startActivity(new Intent(this,OrderVisitActivity.class));
                break;
            case R.id.finance_fifth://租赁协议
                startActivity(new Intent(this,LeaseProtocolActivity.class));
                break;
            case R.id.finance_sixth://资质审核
                startActivity(new Intent(this,AptitudeCheckActivity.class));
                break;
        }
    }
}
